<%--
  Created by IntelliJ IDEA.
  User: wzm
  Date: 2023/3/10
  Time: 11:16
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
	<title>Title</title>
</head>
<body>
<center>
	<h1>新增信息</h1>
	<span style="color: red;">${requestScope.error}</span>
	<%--将整个表单的数据通过action提交到服务器--%>
	<form action="${pageContext.request.contextPath}/addEmp" method="post">
		用户名: <input type="text" name="username"> <br>
		密码:<input type="password" name="password"> <br>
		年龄:<input type="number" name="age"> <br>
		电话: <input type="text" name="phone">  <br>
		状态:
		<input type="radio" name="status" value="1" checked>启用
		<input type="radio" name="status" value="0">禁用 <br>
		<input type="submit" value="添加">
		<input type="reset" value="重置">

	</form>
</center>
</body>
</html>
